package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.BtyCrk;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyCrkParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyCrkDto;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyCrkResult;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author liuy
 * @since 2021-12-10
 */
public interface BtyCrkService extends IService<BtyCrk> {

    /**
     * 新增
     *
     * @author liuy
     * @Date 2021-12-10
     */
    void add(BtyCrkParam param);

    /**
     * 删除
     *
     * @author liuy
     * @Date 2021-12-10
     */
    void delete(BtyCrkParam param);

    /**
     * 更新
     *
     * @author liuy
     * @Date 2021-12-10
     */
    void update(BtyCrkParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author liuy
     * @Date 2021-12-10
     */
    BtyCrkResult findBySpec(BtyCrkParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author liuy
     * @Date 2021-12-10
     */
    List<BtyCrkResult> findListBySpec(BtyCrkParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author liuy
     * @Date 2021-12-10
     */
    LayuiPageInfo findPageBySpec(BtyCrkParam param);

    boolean insertCrk(List<BtyCrkDto> sub);

    List<BtyCrk> sflbList();

    List<BtyCrkResult> gysList(BtyCrkParam param);

    List<BtyCrkResult>tpfkList();

    int updateByDm(BtyCrkParam param);

    int updateErrMsgByDm(BtyCrkParam param);
}
